export class PageListWrap<T>{
    public current_page?: number
    public data?: T[]
}
// {
//     "point_id": 10, // 点位ID
//     "point_name": "华府大道一段", // 点位名称
//     "problem_count": 4, // 问题数量
//     "region_name": "四川天府新区", // 区县
//     "point_type_name": "主次干道" // 点位类型
// }
//整改点位
export class ReformPoint {
    public point_id?: number
    public reform_count?: number//剩余问题
    public reformed_count?: number//已整改问题数
    public point_name?: string
    public problem_count?: string
    public region_name?: string
    public point_type_name?: string

}
// {
//                 "problem_id": 14, // 问题ID
//                 "level3_name": "*公益广告有明显的褪色、污损（褪色、污损面积占总面积的1/3以上）或明显被违法广告（小广告）张贴占用的现象", // 问题指标
//                 "plan_reform_at": "2024-01-22 16:10:26", // 计划整改时间
//                 "status_text": "",
//                 "resource_text": ""
//             }
//点位问题
export class PointQuestion {
    public point_id?: number
    public problem_id?: number
    public number?: number
    public level3_name?: string
    public plan_reform_at?: string
    public status_text?: string
    public resource_text?: string
    public done_at?: string
    public description?: string
}

export class PointDeatil {
    public id?: number // 问题ID（编号）
    public point_id?: number
    public index_level3_id?: number
    public number?: number // 问题数
    public photo?: string // 问题图片
    public done_at?: string // 问题上报时间
    public address?: string // 问题地址
    public description?: string // 问题描述
    public index_level3?: LevelData
    public point?: PointData
    public current_reform?: ReformQuestionData
}
class LevelData {
    public id?: number
    public level3_name?: string//问题指标
    public type_text?: string
}
export class PointData {
    public id?: number
    public point_id?: number
    public problems_count?: number
    public is_exception?: number
    public point_type_name?: string // 点位名称
    public done_date?: string
    public status_text?: string
    public resource_text?: string
    public point_name?: string // 点位名称
    public index_type_name?: string // 指标类型
    public region_name?: string // 区县
    public level3_name?: string // 问题指标
    public done_at?: string
    public region_id?: number
    public number?: number
    public grid_id?: number
    public address?: string //点位地址
    public responsible_user?: string //点位长
    public responsible_phone?: string //点位长电话
    public latest_done_at?: string //最新执行时间
    public point_type_id?: number
    public region?: RegionData
    public point_type?: PointTypeData
    public grid?: GridItemData
}
export class RegionData {
    public id?: number
    public region_id?: number
    public grid_id?: number
    public region_name?: string//区市县
    public grid_name?: string//区市县
    public problem_point_count?: number// 问题点位数
    public problem_left_count?: number//剩余问题数
    public left_problem_count?: number//剩余问题数
    public today_transferred_problem_count?: number//今日新增问题数
    public reformed_problem_count?: number//已整改问题数
    public today_reformed_problem_count?: number//今天已整改问题数
    public reformed_rate?: number// 整改率

}
class PointTypeData {
    public id?: number
    public point_type_name?: string//点位类型名称
}
class ReformQuestionData {
    public id?: number // 流转问题ID （问题整改时的reform_id）
    public problem_id?: number // 问题ID
    public plan_reform_at?: string
    public delay_reform_at?: string
    public reformed_at?: string // 整改时间
    public transferred_at?: string // 问题流转时间
    public reform_region_id?: number
    public photo?: string // 整改图片
    public remark?: string // 整改备注
    public is_reform?: number//0 未整改 1已整改
    public reform_region?: RegionData
}

export class GridItemData {
    public id?: number// w网格ID
    public grid_id?: number// w网格ID
    public grid_name?: string // 网格名称
    public reformed_rate?: number
    public reform_count?: number
    public grid_level_id?: number
    public users_count?: number// 网格人员数
    public points_count?: number// 网格点位数
    public grid_level?: GridLevelData
}
class GridLevelData {
    public id?: number
    public level_name?: string// 网格等级
}
export class ExpandGridData {
    public id?: number// w网格ID
    public pointDatas?: PointData[]
}
export class PointDoRecordData {
    public point_id?: number
    public done_date?: string
    public do_user_id?: number
    public problems_count?: number
    public exception_count?: string
    public is_exception?: number
    public status_text?: string
    public resource_text?: string
    public do_user?: DoUserData
}
class DoUserData {
    public id?: number
    public full_name?: string
    public user_type_name?: string
}
export class TodayDoTaskData {
    public task_id?: number
    public point_name?: string
    public point_type_name?: string
    public is_done?: number
}
export class CityData {
    public id?: number
    public city_name?: string
}
export class GridFenceData {
    public id?: number
    public gps?: [[number, number]]
}
export class UserEntityData {
    public entity_name?: string
    public create_time?: string
    public modify_time?: string
    public entity_desc?: string
    public latest_location?: LatestLocationData
    public user?: UserData

}
class LatestLocationData {
    public loc_time?: string
    public longitude?: any
    public latitude?: any
    public direction?: number
    public floor?: string
    public height?: number
    public radius?: number
    public speed?: any
    public is_online?: number
}
export class UserData {
    public id?: number
    public full_name?: string
    public phone?: string
    public grid_id?: number
    public user_type_name?: string
    public grid?: RegionData
    public loactionData? :{
        latitude?:number
        longitude?:number
    }
    public latest_point? :{
        lat?:number
        lng?:number
    }
}
export class SingleGridCountData {
    public reform_point_count?: number//待整改点位数
    public reform_problem_count?: number//待整改问题数

}

export class KeyData {
    public reform_count: number = 0 // 待整改问题
    public reformed_count: number = 0 // 已整改问题
    public reformed_rate: number = 0 // 整改率
    public overdue_count: number = 0 // 逾期问题
    public overdue_today_count: number = 0 // 逾期问题较昨日
    public reformed_today_count: number = 0 // 已整改问题较昨日
    public reformed_today_rate: number = 0  // 整改率较昨日
}
export class DiscoverProblemCountData {
    public total_problem_count: number = 0 // 问题总数
    public today_discover_problem_count: number = 0 // 今日发现问题数
    public dynamic_count: number = 0 // 动态问题数
    public static_count: number = 0 // 静态问题数
}

export class DiscoverProblemRegionCountData {
    public id?: number
    public region_name?: string
    public reform_rate?: number
    public resource?: ResourceData[]
}
class ResourceData {
    public resource_type?: string
    public problem_count?: number
}
 
export class RegionListData {
    public id?: number
    public region_name?: string
    public gps?: {
        public type?: string,
        public id?: string,
        public properties?: {
            public describe?: string,
            public name?: string,
            public cp?: [number, number]
        },
        public geometry?: {
            public type?: string,
            public coordinates?: [[]]
        }
    }[]
}
export class RegionCountData{
    public grid_count?:number
    public point_count?:number
    public problem_count?:number
    public reformed_count?:number
    public reform_count?:number
    public reformed_rate?:number
}